﻿<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>@ViewBag.Title</title>
    <link href="~/css/framework-font.css" rel="stylesheet" />
    <link href="~/css/framework-theme.css" rel="stylesheet" />
    <script src="~/lib/jquery/1.12.4/jquery.min.js"></script>
    <script src="~/lib/bootstrap/3.3.4/js/bootstrap.min.js"></script>
    <link href="~/lib/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet" />
    <script src="~/lib/wdtree/tree.js"></script>
    <link href="~/lib/wdtree/tree.css" rel="stylesheet" />
    <link href="~/lib/select2/select2.min.css" rel="stylesheet" />
    <script src="~/lib/select2/select2.min.js"></script>
    <script src="~/lib/laydate/laydate.js"></script>
    <script src="~/lib/moment/moment.js"></script>
    <link href="~/lib/wizard/wizard.css" rel="stylesheet" />
    <script src="~/lib/wizard/wizard.js"></script>
    <script src="~/lib/validate/jquery.validate.min.js"></script>
    <script src="~/lib/datepicker/WdatePicker.js"></script>
    <script src="~/lib/jqgrid/5.3.0/i18n/grid.locale-cn.js"></script>
    <link href="~/css/framework-ui.css" rel="stylesheet" />
    <script src="~/js/framework-ui.js"></script>

    <link href="~/lib/iconpicker/icon-picker.min.css" rel="stylesheet" />
    <script src="~/lib/iconpicker/iconPicker.js"></script>
</head>
<body>
    <script>
        var keyValue = $.request("keyValue");
        $(function () {
            initControl();
            if (!!keyValue) {
                $.ajax({
                    url: "/SystemManage/Menu/GetFormJson",
                    data: { keyValue: keyValue },
                    dataType: "json",
                    async: false,
                    success: function (data) {
                        $("#form1").formSerialize(data);
                    }
                });
            }
        });
        function initControl() {

        }
        function submitForm() {
            if (!$('#form1').formValid()) {
                return false;
            }
            var postData = $("#form1").formSerialize();
            postData["ObjectType"] = "Menu";
            $.submitForm({
                url: "/SystemManage/Menu/SubmitForm?keyValue=" + keyValue,
                param: postData,
                success: function () {
                    $.currentWindow().$("#gridList").resetSelection();
                    $.currentWindow().$("#gridList").trigger("reloadGrid");
                }
            })
        }
    </script>
    <form id="form1">
        <div style="padding-top: 10px; margin-right: 30px;">
            <table class="form">
                <tr>
                    <th class="formTitle">开始日期<font face="宋体">*</font></th>
                    <td class="formValue">
                        <input id="FullName" name="FullName" type="text" class="form-control required input-wdatepicker" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" />
                    </td>
                    <th class="formTitle">时间<font face="宋体">*</font></th>
                    <td class="formValue">
                        <input id="FullName" name="FullName" type="text" class="form-control required input-wdatepicker" onfocus="WdatePicker({dateFmt:'HH:mm:ss'})" />
                    </td>
                </tr>
                <tr>
                    <th class="formTitle">结束日期<font face="宋体">*</font></th>
                    <td class="formValue">
                        <input id="FullName" name="FullName" type="text" class="form-control required input-wdatepicker" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" />
                    </td>
                    <th class="formTitle">时间<font face="宋体">*</font></th>
                    <td class="formValue">
                        <input id="FullName" name="FullName" type="text" class="form-control required input-wdatepicker" onfocus="WdatePicker({dateFmt:'HH:mm:ss'})" />
                    </td>
                </tr>
                <tr>
                    <th class="formTitle">
                        提前提醒
                    </th>
                    <td class="formValue" colspan="3">
                        <input id="SortCode2" name="SortCode2" type="text" class="form-control required" placeholder="请输入排序" />
                    </td>
                </tr>
                <tr>
                    <th class="formTitle">
                        日程标题<font face="宋体">*</font>
                    </th>
                    <td class="formValue" colspan="3">
                        <input id="SortCode2" name="SortCode2" type="text" class="form-control required" placeholder="请输入排序" />
                    </td>
                </tr>
                <tr>
                    <th class="formTitle" valign="top" style="padding-top: 5px;">
                        日程内容
                    </th>
                    <td class="formValue" colspan="3">
                        <textarea id="Description" name="Descriptions" class="form-control" style="height: 100px;"></textarea>
                    </td>
                </tr>
                <tr>
                    <th class="formTitle" style="height: 35px;">选项</th>
                    <td class="formValue" colspan="3" style="padding-top: 1px;">
                        <div class="ckbox">
                            <input id="IsMenu" name="IsMenu" type="checkbox"><label for="IsMenu">邮件提醒</label>
                        </div>
                        <div class="ckbox">
                            <input id="IsPublic" name="IsPublic" type="checkbox"><label for="IsPublic">短信提醒</label>
                        </div>
                        <div class="ckbox">
                            <input id="IsExpand" name="IsExpand" type="checkbox"><label for="IsExpand">微信提醒</label>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    </form>

</body>
</html>
